//
//  XDRefreshingView.h
//  TheRicher
//
//  Created by 李晓东 on 2018/1/31.
//  Copyright © 2018年 PeanutXu. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "NetResultDelegate.h"

typedef void (^CallNetBlock)(void);

@interface XDRefreshingView : UIView {
    UIScrollView *_myScrollView;
    UITableView *_tableView;
}
//@property (nonatomic, strong) UIView *refreshView;
@property (nonatomic, strong) UIImageView *refreshImgView;

@property (nonatomic, assign) CGFloat naviHeight;
@property (nonatomic, assign) BOOL isDraged;
@property (nonatomic, assign) BOOL needCall;

@property (nonatomic, strong) NSTimer *timer;
// navi导航条的高度+图片底部(即图片底部到 refreshView 底部的距离)
@property (nonatomic, assign) CGFloat dragingPicY;
- (instancetype)initWithFrame:(CGRect)frame andBlock:(CallNetBlock)block;
- (void)stopAnimating;
@end
